package vn.keho.module.dompeto.rest;

import vn.keho.define.api.http.RestClient;

/**
 * Created by KeHo on 11/23/14.
 */
public class DompetoParam {
    public static final int APPS_ID_ON_APPS = 35;

    private String apiUrl;

    //signup
    private String username;
    private String password;
    private String appsonapps;
    private String phone;
    private String country;
    private String city;
    private String deviceid;

    //Login
    private String mappsidonapps;
    private String ip;
    private String device;
    private String os;
    private String location;
    private String walletupdate;
    private String langid;

    //Resend link
    private String token;

    private String channelid;
    private String serviceid;
    private String amount;

    //Update Json
    private String jsonBody;
    private String updatewallet;

    public void buildApiParam(RestClient restClient) {
        if (amount != null) {
            restClient.AddParam("amount", amount);
        }
        if (serviceid != null) {
            restClient.AddParam("serviceid", serviceid);
        }
        if (channelid != null) {
            restClient.AddParam("channelid", channelid);
        }
        if (updatewallet != null) {
            restClient.AddParam("updatewallet", updatewallet);
        }
        if (token != null) {
            restClient.AddParam("token", token);
        }
        if (langid != null) {
            restClient.AddParam("langid", langid);
        }
        if (walletupdate != null) {
            restClient.AddParam("walletupdate", walletupdate);
        }
        if (location != null) {
            restClient.AddParam("location", location);
        }
        if (mappsidonapps != null) {
            restClient.AddParam("mappsidonapps", mappsidonapps + "");
        }
        if (ip != null) {
            restClient.AddParam("ip", ip);
        }
        if (device != null) {
            restClient.AddParam("device", device);
        }

        if (os != null) {
            restClient.AddParam("os", os);
        }


        if (username != null) {
            restClient.AddParam("username", username);
        }
        if (password != null) {
            restClient.AddParam("password", password);
        }
        if (appsonapps != null) {
            restClient.AddParam("appsonapps", appsonapps);
        }
        if (phone != null) {
            restClient.AddParam("phone", phone);
        }

        if (country != null) {
            restClient.AddParam("country", country);
        }

        if (city != null) {
            restClient.AddParam("city", city);
        }

        if (deviceid != null) {
            restClient.AddParam("deviceid", deviceid + "");
        }

    }

    public DompetoParam(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAppsonapps() {
        return appsonapps;
    }

    public void setAppsonapps(String appsonapps) {
        this.appsonapps = appsonapps;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }



    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getWalletupdate() {
        return walletupdate;
    }

    public void setWalletupdate(String walletupdate) {
        this.walletupdate = walletupdate;
    }

    public String getLangid() {
        return langid;
    }

    public void setLangid(String langid) {
        this.langid = langid;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getJsonBody() {
        return jsonBody;
    }

    public void setJsonBody(String jsonBody) {
        this.jsonBody = jsonBody;
    }

    public String getUpdatewallet() {
        return updatewallet;
    }

    public void setUpdatewallet(String updatewallet) {
        this.updatewallet = updatewallet;
    }

    public String getChannelid() {
        return channelid;
    }

    public void setChannelid(String channelid) {
        this.channelid = channelid;
    }

    public String getMappsidonapps() {
        return mappsidonapps;
    }

    public void setMappsidonapps(String mappsidonapps) {
        this.mappsidonapps = mappsidonapps;
    }

    public String getServiceid() {
        return serviceid;
    }

    public void setServiceid(String serviceid) {
        this.serviceid = serviceid;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }
}
